/*
   无参与全参方法定义
 */
public class Work01 {
    private String NO;
    private String name;
    private char sex;
    private int age;
    private String obj;
    private String NO1;
    private String name1;
    private String time;
    private String dis;

    //有参
    public Work01(String NO, String name, char sex, int age, String obj, String NO1, String name1, String time, String dis) {
        this.NO = NO;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.obj = obj;
        this.NO1 = NO1;
        this.name1 = name1;
        this.time = time;
        this.dis = dis;
    }
    //无参


    public String getNO() {
        return NO;
    }

    public void setNO(String NO) {
        this.NO = NO;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public String getNO1() {
        return NO1;
    }

    public void setNO1(String NO1) {
        this.NO1 = NO1;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDis() {
        return dis;
    }

    public void setDis(String dis) {
        this.dis = dis;
    }

    public void show() {
        System.out.println(NO + name + sex + age + obj + NO1 + name1 + time + dis);
    }
}
